﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common.Net.Utilities;
using System.Reflection;

namespace ClearUnit.TestRunners
{
    public static class MethodAttributeHelper
    {
        public static bool IsTest(this MethodInfo method)
        {
            return IsExplicit(method) || method.HasAttribute<TestAttribute>();
        }

        public static bool IsExplicit(this MethodInfo method)
        {
            return method.HasAttribute<ExplicitAttribute>();
        }
    }
}
